import sys

from ..download_news_dataset import batch_download_dataset


def run():
    """
    从命令行获取参数：
    1. news_keynos_fp，新闻 keyno 列表
    2. each_count，每个文件的行数
    3. output，输出文件
    """
    news_keynos_fp = sys.argv[2]
    each_count = int(sys.argv[3])
    output = sys.argv[4]
    batch_download_dataset(news_keynos_fp, each_count, output)
